package com.ss.android.lockscreen.activity.lock;

import com.ss.android.lockscreen.d.a.c.a;
import com.ss.android.lockscreen.d.a.c;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public final class i implements a {
    public final LockScreenActivity a;

    i(LockScreenActivity arg1) {
        this.a = arg1;

    }

    public final void a(List arg7) {
        List v0 = LockScreenActivity.a(arg7);
        List v1 = LockScreenActivity.b(arg7);
        ArrayList v2 = new ArrayList();
        ((List) v2).addAll(((Collection) v0));
        ((List) v2).addAll(((Collection) v1));
        if (((List) v2).size() > 0) {
            LockScreenActivity.m(this.a).a(((List) v2), true);
            LockScreenActivity.n(this.a);
            int v1_1 = v1.size() > 0 ? v0.size() : v0.size() - 1;
            LockScreenActivity.a(this.a).setCurrentItem(v1_1, false);
            android.support.design.a.B.a(((com.ss.android.lockscreen.http.data.ScreenCell) ((List) v2).get(v1_1)).f);
            LockScreenActivity.a(this.a, v1_1);
        } else {
            if (LockScreenActivity.p(this.a)) {
            } else if (LockScreenActivity.q(this.a) != null && (LockScreenActivity.q(this.a).a())) {
                LockScreenActivity.r(this.a);
                LockScreenActivity.s(this.a).a(this.a.getApplicationContext(), LockScreenActivity.q(this.a).a);
            } else {
                LockScreenActivity.r(this.a);
                LockScreenActivity.s(this.a).a(this.a.getApplicationContext());
            }
        }

        c.a().a(this.a, new com.ss.android.lockscreen.activity.lock.a.a(), new com.ss.android.lockscreen.d.a.c.c$c(this, ((List) v2)));
    }
}

